import datetime
from sqlalchemy import SmallInteger,Column, DateTime


class CommonMixin:
    status = Column(SmallInteger, default=0, comment="是否删除: 0 未删除 1 已删除")
    create_time = Column(DateTime, default=datetime.datetime.now, comment='创建时间')
    update_time = Column(DateTime, default=datetime.datetime.now, onupdate=datetime.datetime.now, comment='更新时间')